<!--html head部分  通过引入文件完成(分别适应于PC和手机)-->
<?php include($plume['ROOT_PATH'] . "modules/Track/View/layout/layoutM.phtml"); ?>
<?php
$userInfo = null;
$trackList = null;
if (isset($data['user_info'])) {
    $userInfo = $data['user_info'];
}
if (isset($data['track_list'])) {
    $trackList = $data['track_list'];
}
?>
<!--html body部分 根据业务需求完善你的content-->
<div class="container">
<!-- first row -->
<div class="row">
<div class="col-md-12 text-center">
  <h4>客户信息</h4>
  <hr style="height:3px;border:none;border-top:3px double red;" />
</div>
</div><!-- end first row -->
<!-- row -->
<div class="row">
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label for="date">日期：</label>
    </div>
    <div class="col-md-9">
      <label><?php echo isset($userInfo['date']) ? substr($userInfo['date'], 0, 10) : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="from">渠道：</label>
    </div>
    <div class="col-md-9">
      <label><?php echo isset($userInfo['from']) ? $userInfo['from'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="fromkey">关键字：</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($userInfo['fromkey']) ? $userInfo['fromkey'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="name">姓名：</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($userInfo['name']) ? $userInfo['name'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
</div>
<!-- end row -->
<!-- row -->
<div class="row">
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="area">地区：</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($userInfo['area']) ? $userInfo['area'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="fromkey">QQ号：</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($userInfo['qq']) ? $userInfo['qq'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="tel">电话：</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($userInfo['tel']) ? $userInfo['tel'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="mail">邮箱：</label>
    </div>
    <div class="col-md-9">
      <label><?php echo isset($userInfo['mail']) ? $userInfo['mail'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
</div>
<!-- end row -->
<!-- row -->
<div class="row">
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="nhtype">年会类型：</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($userInfo['nhtype']) ? $userInfo['nhtype'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="comname">年会名称：</label>
    </div>
    <div class="col-md-9">
      <label><?php echo isset($userInfo['comname']) ? $userInfo['comname'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="nhscope">年会规模：</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($userInfo['nhscope']) ? $userInfo['nhscope'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="step">阶段：</label>
    </div>
    <div class="col-md-9">
      <label><?php echo isset($userInfo['step']) ? $userInfo['step'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
</div>
<!-- end row -->
<!-- row -->
<div class="row">
<!-- element -->
<div class="col-md-12">
<div class="form-group">
  <div class="row">
    <div class="col-md-1">
      <label class="control-label" for="note">备注：</label>
    </div>
    <div class="col-md-11">
      <label><?php echo isset($userInfo['note']) ? $userInfo['note'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
</div><!-- end row -->
<hr>
<!-- 客户跟踪信息列表-->
<div class="row">
<div class="col-md-12 text-center">
  <h4>跟踪记录</h4>
  <hr style="height:3px;border:none;border-top:3px double red;" />
</div>
</div><!-- end row -->
<!-- 客户跟踪信息列表详情-->
<div>
<?php
if (!empty($trackList)) {
  $index = 0;
  foreach ($trackList as $track) {
  $index++;
?>
<!-- row -->
<div class="row">
<!-- element -->
<div class="col-md-4">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="step">编号:</label>
    </div>
    <div class="col-md-9">
      <label><?php echo $index ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<!-- element -->
<div class="col-md-4">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="nhtype">联系人:</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($track['track_name']) ? $track['track_name'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
<div class="row">
<!-- element -->
<div class="col-md-3">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="comname">联系日期:</label>
    </div>
    <div class="col-md-9">
      <label><?php echo isset($track['track_date']) ? substr($track['track_date'], 0, 10) : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
</div><!-- end row -->
<!-- element -->
<div class="col-md-12">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="nhscope">联系内容详情:</label>
    </div>
    <div class="col-md-9">
        <label><?php echo isset($track['track_detail']) ? $track['track_detail'] : '' ?></label>
    </div>
  </div>
</div>
</div>
<!-- end elment -->
</div><!-- end row -->
<hr style="height:1px;border:none;border-top:1px dashed #0066CC;" />
<?php
  }
}
?>
</div>
<!-- 客户跟踪信息列表 结束-->
<!-- 客户跟踪编辑页面 -->
<div class="row"><!-- row -->
<!-- element -->
<div class="col-md-4">
<div class="form-group">
  <div class="row">
    <div class="col-md-3">
      <label class="control-label" for="nhtype">联系人:</label>
    </div>
    <div class="col-md-9">
        <input type="text" id="trackname">
    </div>
  </div>
</div>
</div><!-- end elment -->
<div class="col-md-4"><!-- element -->
<div class="form-group">
  <div class="row">
    <div class="col-md-4">
      <label class="control-label" for="comname">联系日期:</label>
    </div>
    <div class="col-md-4">
      <input type="date" id="trackdate">
    </div>
  </div>
</div>
</div><!-- end elment -->
<div class="col-md-4"><!-- element -->
  <div class="form-group">
  <div class="row">
        <div class="col-md-6">
          <button type="button" id="trackadd" class="btn btn-primary">追加</button>
        </div>
        <div class="col-md-6">
          <button type="button" id="cancel" class="btn btn-info">取消</button>
        </div>
  </div>
</div>
</div><!-- end elment -->
</div><!-- end row -->
<div class="row"><!-- row -->
<div class="col-md-12"><!-- element -->
<div class="form-group">
  <div class="row">
    <div class="col-md-1">
      <label class="control-label" for="nhscope">联系内容详情:</label>
    </div>
    <div class="col-md-11">
        <input class="form-control" type="text" id="trackdetail"/>
    </div>
  </div>
</div>
</div><!-- end elment -->
</div><!-- end row -->
<hr>
<!-- 客户跟踪编辑页面 结束-->
<input type="hidden" id="userid" value="<?php echo isset($userInfo['id']) ? $userInfo['id'] : '' ?>">
</form><!--end form-->
</div><!--end container-->


<!--html body部分 结束-->

<!--html foot部分  通过引入文件完成-->
<?php include($plume['ROOT_PATH'] . "modules/Track/View/layout/footer.phtml"); ?>
<script src="/js/track.js"></script>